package com.supcon.exchangedata.repository.master;

import com.supcon.exchangedata.pojo.entity.oracle.HjCarInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

public interface MasterHjCarInfoRepository  extends JpaRepository<HjCarInfo, Long> {

    @Transactional
    @Query(nativeQuery = true, value = "SELECT ID FROM HJ_CAR_INFO WHERE ID = ?1")
    HjCarInfo findByTop(Integer id);
}
